#include "IHudElement.h"

IHudElement::IHudElement(Image2D* Image, IShader* Shader,int pX, int pY)
{
	image = Image;
	shader = Shader;
	obj.IHUDELEMENT = this;
	positionX = pX;
	positionY = pY;
}

IHudElement::~IHudElement(void)
{
}

void IHudElement::Draw(int elapsedTime)
{
	shader->SetShaderOnDevice(obj);
	image->Render(positionX,positionY);
}

void IHudElement::Update(int elapsedTime)
{
	shader->Update(obj,NULL);	
}